class CreateCulturalHeritageIncidences < ActiveRecord::Migration
  def self.up
    create_table :cultural_heritage_incidences do |t|
      t.integer :user
      t.integer :culturalHeritage
      t.string :location
      t.string :dniResponsable
      t.string :fullNameResponsable
      t.string :briefDesc
      t.text :completeDesc
      t.string :photo
      t.integer :state, :default => 0
      t.integer :deleted, :default => 0
      t.integer :department
      t.integer :province
      t.integer :district
      t.boolean :gmaps, :default=>false
      t.decimal :latitude,{:precision=>10, :scale=>6}
      t.decimal :longitude,{:precision=>10, :scale=>6}
      t.text :address

      t.timestamps
    end
  end

  def self.down
    drop_table :cultural_heritage_incidences
  end
end
